#include <iostream>

using namespace std;


class Person
{
public:
    Person()
    {
        cout<<"父类无参构造"<<endl;

    }

    ~Person()
    {
        cout<<"父类析构函数 "<<endl;

    }

    int makeMoney()
    {
        cout<<"Person 赚钱 "<<endl;
        return 0;
    }

private:
    int m_age;
};

class Student : public Person
{
public:
    Student()
    {
        cout<<"子类无参构造"<<endl;

    }
    ~Student()
    {
        cout<<"子类析构函数 "<<endl;

    }
    /* 重写*/
    int makeMoney()
    {
        cout<<"Person 兼职-赚钱 "<<endl;
        return 0;
    }

public:
    int m_no;

};

class Teachr : public Person
{
public:
    Teachr()
    {
        cout<<"子类无参构造"<<endl;

    }
    ~Teachr()
    {
        cout<<"子类析构函数 "<<endl;

    }
    /* 重写*/
    int makeMoney()
    {
        cout<<"Person 出书-赚钱 "<<endl;
        return 0;
    }

public:
    int m_hari;

};

class Student : public Person
{
public:
    Student()
    {
        cout<<"子类无参构造"<<endl;

    }
    ~Student()
    {
        cout<<"子类析构函数 "<<endl;

    }
    /* 重写*/
    int makeMoney()
    {
        cout<<"Person 兼职-赚钱 "<<endl;
        return 0;
    }

public:
    int m_no;

};

int main()
{

    return 0;
}